Style Layers
-
A map style’s background layer is the bottommost layer and is used to style a color or pattern to show below all other map features. You can query an
See moreMGLMapView
for itsstyle
and obtain the background layer using the-[MGLStyle layerWithIdentifier:]
method and passingbackground
for the identifier.Declaration
Objective-C
@interface MGLBackgroundStyleLayer : MGLStyleLayer
Swift
class MGLBackgroundStyleLayer : MGLStyleLayer
-
A circle layer which allows customization of styling properties at runtime. You may instantiate a new circle layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLCircleStyleLayer : MGLVectorStyleLayer
Swift
class MGLCircleStyleLayer : MGLVectorStyleLayer
-
A fill layer which allows customization of styling properties at runtime. You may instantiate a new fill layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLFillStyleLayer : MGLVectorStyleLayer
Swift
class MGLFillStyleLayer : MGLVectorStyleLayer
-
MGLForegroundStyleLayer
is an abstract superclass for style layers whose content is defined by anMGLSource
object.Do not create instances of this class directly, and do not create your own subclasses of this class. Instead, create instances of
See moreMGLRasterStyleLayer
and the concrete subclasses ofMGLVectorStyleLayer
.Declaration
Objective-C
@interface MGLForegroundStyleLayer : MGLStyleLayer
Swift
class MGLForegroundStyleLayer : MGLStyleLayer
-
A line layer which allows customization of styling properties at runtime. You may instantiate a new line layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLLineStyleLayer : MGLVectorStyleLayer
Swift
class MGLLineStyleLayer : MGLVectorStyleLayer
-
A raster layer which allows customization of styling properties at runtime. You may instantiate a new raster layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLRasterStyleLayer : MGLForegroundStyleLayer
Swift
class MGLRasterStyleLayer : MGLForegroundStyleLayer
-
MGLStyleLayer
is an abstract base class for style layers. A style layer manages the layout and appearance of content at a specific z-index in a style. AnMGLStyle
object consists of one or moreMGLStyleLayer
objects.Each style layer defined by the style JSON file is represented at runtime by an
MGLStyleLayer
object, which you can use to refine the map’s appearance. You can also add and remove style layers dynamically.Do not create instances of this class directly, and do not create your own subclasses of this class. Instead, create instances of
See moreMGLBackgroundStyleLayer
and the concrete subclasses ofMGLForegroundStyleLayer
.Declaration
Objective-C
@interface MGLStyleLayer : NSObject
Swift
class MGLStyleLayer : NSObject
-
A symbol layer which allows customization of styling properties at runtime. You may instantiate a new symbol layer to add to a map style or you may query an
See moreMGLMapView
for itsstyle
and obtain existing layers using the-[MGLStyle layerWithIdentifier:]
method.Declaration
Objective-C
@interface MGLSymbolStyleLayer : MGLVectorStyleLayer
Swift
class MGLSymbolStyleLayer : MGLVectorStyleLayer
-
MGLVectorStyleLayer
is an abstract superclass for style layers whose content is defined by anMGLGeoJSONSource
orMGLVectorSource
object.Do not create instances of this class directly, and do not create your own subclasses of this class. Instead, create instances of the following concrete subclasses:
See moreMGLCircleStyleLayer
,MGLFillStyleLayer
,MGLLineStyleLayer
, andMGLSymbolStyleLayer
.Declaration
Objective-C
@interface MGLVectorStyleLayer : MGLForegroundStyleLayer
Swift
class MGLVectorStyleLayer : MGLForegroundStyleLayer